package com.huluobo.jetpackkotlindemo.paging

import com.google.gson.annotations.SerializedName

/**
 * Created by lc on 2022/12/19.
 * @SerializedName 属性重命名,可以将json中的属性名转换为我们自已定义的属性名
 */
class RepoResponse {
    @SerializedName("items")
    val items: List<Repo> = emptyList()
}

data class Repo(
    @SerializedName("id") val id: Int,
    @SerializedName("name") val name: String,
    @SerializedName("description") val description: String,
    @SerializedName("stargazers_count") val starCount: String
)